package com.ff.neuropp.controller;

import com.ff.neuropp.service.MyScheduleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/app/schedule")
@Api(value = "app我的日程controller", tags = {"app我的日程接口"})
public class MyScheduleController {

    @Autowired
    private MyScheduleService scheduleService;

    @GetMapping("/info")
    @ApiOperation(value = "我的日程", notes = "我的日程")
    public Map<String,Object> schedules(@ApiParam(required = false, value = "用户id") @RequestParam(required = true) String userId){
        return scheduleService.scheduleInfo(userId);
    }
}
